package com.distribution.system.mapper;

import com.distribution.system.domain.bo.KuaidialAreas;
import com.distribution.system.domain.bo.KuaidialAreasJoin;
import com.distribution.system.domain.bo.ZoningAreas;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Liping Huo
 * @date 2023/5/23 20:49
 */
@Mapper
public interface CmccDaCodeMapper {

    List<ZoningAreas> getProvince();

    List<ZoningAreas> getCity(String province);

    List<ZoningAreas> getCounty(String city);

    List<KuaidialAreas> getKuaidialProvince();

    List<KuaidialAreas> getKuaidialCity(String kuaidialProvince);



    String getNameByZoningCode(String code);

    String getNameByKuaidialCode(String code);

    List<ZoningAreas> getZoningProvinceList();

    List<ZoningAreas> getZoningCityList();

    List<ZoningAreas> getZoningCountyList();

    List<KuaidialAreas> getKuaidialCityList();

    List<KuaidialAreas> getKuaidialProvinceList();

    KuaidialAreasJoin getKuaidialCityByName(@Param("kuaidialProvinceAreas") KuaidialAreasJoin kuaidialProvinceAreas, @Param("cityName") String cityName);

    KuaidialAreasJoin getKuaidialProvinceByName(String provinceByName);

    String getKuaidialNameByCode(String code);
}
